package com.ziyun.pop.modules.logistics.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ziyun.pop.modules.logistics.dao.ErpLogisticsItemDao;
import com.ziyun.pop.modules.logistics.entity.ErpLogisticsItemEntity;
import com.ziyun.pop.modules.logistics.service.ErpLogisticsItemService;
import org.springframework.stereotype.Service;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;


@Service("erpLogisticsItemService")
public class ErpLogisticsItemServiceImpl extends ServiceImpl<ErpLogisticsItemDao, ErpLogisticsItemEntity> implements ErpLogisticsItemService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<ErpLogisticsItemEntity> page = (Page<ErpLogisticsItemEntity>) this.page(
                new Query<ErpLogisticsItemEntity>(params).getPage(),
                new QueryWrapper<ErpLogisticsItemEntity>()
        );

        return new PageUtils(page);
    }

}
